<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.js"></script>
</head>
<body>
    <div id="box">1</div>
    <div class="dbox">2</div>
    <div class="dbox">3</div>
    <script>
        $(function(){
            var $box=$("#box");
            $box[0].style.width="200px";
            $box[0].style.height="200px";
            $box[0].style.backgroundColor="skyblue";
        })

        $(function(){
            var $box2=$(".dbox");
            for(var i=0;i<$box2.length;i++){
                $box2[i].style.width="200px";
                $box2[i].style.height="200px";
                $box2[i].style.margin="2px";
                $box2[i].style.backgroundColor="yellow";
            }
        })
    </script>
</body>
</html>